package Polymorphism;

public class Test {

	public static void main(String[] args) {
		// Create a lecturer.
		Lecturer lecturer = new Lecturer("Bob");
		
		// Create some UnderGrad students and add to lecturer.teaches.
		UnderGrad student1 = new UnderGrad();
		student1.setMatric(32165789);
		student1.setName("Billy");
		lecturer.addStudent(student1);
		
		UnderGrad student2 = new UnderGrad();
		student2.setMatric(15247889);
		student2.setName("Jill");
		lecturer.addStudent(student2);
		
		UnderGrad student3 = new UnderGrad();
		student3.setMatric(65489711);
		student3.setName("Limmy");
		lecturer.addStudent(student3);
		
		// Create a PostGrad students and add to lecturer.teaches.
		PostGrad student4 = new PostGrad();
		student4.setMatric(11309764);
		student4.setName("Phil");
		student4.setDegree("Cognitive Science");
		lecturer.addStudent(student4);
		
		// Print out the list of students the lecturer teaches.
		lecturer.printStudents();
	}
}
